package com.sl.au.repository;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import com.sl.au.entity.BusinessCheckDetail;
import com.sl.au.entity.BussinessCheck;

public interface BusinessCheckDetailRepository extends JpaRepository<BusinessCheckDetail, String>{
	@Query("select b from BusinessCheckDetail b " + "where b.bussinessCheck.id=?1")
	Page<BusinessCheckDetail> getCheckDetailByCheckId(String key, Pageable pageable);
}
